Method: Timezone.[]

Defined in:
lib/timezone.rb

.[](name) ⇒ Timezone::Zone, Timezone::NilZone

Retrieve a timezone by name.

Parameters:

  • name (String)

    the timezone name

Returns:


23
24
25
# File 'lib/timezone.rb', line 23

def self.[](name)
  fetch(name) { ::Timezone::NilZone.new }
end